<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>15_百分比比例</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        html {
            width: 100%;
            height: 100%;
        }
        
        body {
            width: 100%;
            height: 100%;
        }
        
        .container {
            height: 50%;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="text">盒子</div>
    </div>
</body>

</html>